<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Inicio De Sesión</title>
        <link rel="shortcut icon" href="Data\\images\\Saved-Data-Utility.ico" type="image/x-icon"/>
        <link rel="stylesheet" href="Data\\CSS\\content.css" type="text/css"/>
        <link rel="stylesheet" href="Data\\CSS\\ui-layout.css" type="text/css"/>
    </h:head>
    <h:body>
        <h:form>
            <p:growl id="growl" showDetail="true"  life="10000" />
            <p:dialog header="Iniciar Sesión Administrador Oracle" widgetVar="carDialog" position="center" modal="true" width="400" height="250"  visible="true" showEffect="explode" hideEffect="explode" resizable="false" closable="false">  
                <p:outputPanel id="carDetail" style="text-align:center;" layout="block">   
                    <h:panelGrid  columns="2" cellpadding="5" >  
                        <h:outputText value="Servidor: "/>
                        <p:inplace editor="true"> 
                            <p:inputText value="#{conectionBean.host}" required="true" id="Host" requiredMessage="Por favor Ingrese el Host"/>
                        </p:inplace>

                        <h:outputText value="Nombre de Usuario: " />
                        <p:inputText value="#{conectionBean.user}" required="true" id="UserName" requiredMessage="Por favor Ingrese un Usuario"/>

                        <h:outputText value="Contraseña: " />
                        <p:password value="#{conectionBean.password}"  required="true" id="password" requiredMessage="Por favor Ingrese un Password"/>

                        <h:outputText value="SID: " />
                        <p:inputText value="#{conectionBean.database}" required="true" id="SID" requiredMessage="Por favor Ingrese el SID"/>
                        
                    </h:panelGrid> 

                    <center>
                        
                        <h:panelGrid  columns="2" cellpadding="5" >
                                            
                            <h:outputText value="Como Sysdba: " />  
                            <p:selectBooleanCheckbox value="#{conectionBean.sysdba}" />  
                        
                        </h:panelGrid>
                        
                        <p:commandButton action="#{conectionBean.login()}" value="Conectar" ajax="false"/>
                        
                        <br/>
                        
                    </center> 
                    
                </p:outputPanel>  
            </p:dialog>
        </h:form>
    </h:body>
</html>

